﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class BusinessDefInfo
    {

        public class Field
        {
            public const string PeriodFrom = "PeriodFrom";
            public const string PeriodTo = "PeriodTo";
            public const string Tolerance = "Tolerance";

        }
        public int PeriodFrom { get; set; }
        public int PeriodTo { get; set; }
        public decimal Tolerance { get; set; }
        public BusinessDefInfo() { }

        public BusinessDefInfo(System.Data.DataRow dataRow)
        {
            // TODO: Complete member initialization
            this.PeriodFrom = Convert.ToInt32(dataRow[Field.PeriodFrom]);
            this.PeriodTo = Convert.ToInt32(dataRow[Field.PeriodTo]);
            this.Tolerance = Convert.ToDecimal(dataRow[Field.Tolerance]);
        }
    }
}
